package com.ethan.rabbittopicsconsmer;

import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class ReceiverBean {
    @RabbitListener(queues = "queue_topics")
    public void processMessage(String msg) {
        log.info("queue_topics---"+msg);
    }
    @RabbitListener(queues = "queue_topics_01")
    public void processMessage01(String msg) {
        log.info("queue_topics01---"+msg);
    }
}
